This patch was copied from Debian. Description: skip the workbuf test if VB2_WORKBUF_ALIGN different from 16 Author: Sophie Brun Last-Update: 2015-12-03 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/tests/vb2_common_tests.c +++ b/tests/vb2_common_tests.c @@ -70,6 +70,11 @@ static void test_workbuf(void) /* NOTE: There are several magic numbers below which assume that * VB2_WORKBUF_ALIGN == 16 */ + /* Skip the tests if VB2_WORKBUF_ALIGN != 16 */ + if (VB2_WORKBUF_ALIGN != 16) { + return; + } + /* Init */ vb2_workbuf_init(&wb, p0, 64); TEST_EQ(vb2_offset_of(p0, wb.buf), 0, "Workbuf init aligned"); orm.submit();'> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/store-database.scm
AgeCommit message (Expand)Author
2021-01-31database: Validate #:nar-size and #:time when registering store items....* guix/store/database.scm (assert-integer): New procedure. (update-or-insert): Use it to validate NAR-SIZE and TIME. * tests/store-database.scm ("sqlite-register with incorrect size"): New test. Ludovic Courtès
2020-12-15database: Remove 'register-path'....* guix/store/database.scm (register-path): Remove. * tests/store-database.scm ("register-path"): Rename to... ("register-items"): ... this, and use 'register-items' instead of 'register-path'. ("register-path, directory"): Rename to... ("register-items, directory"): ... this, and use 'register-items' instead of 'register-path'. ("register-path with unregistered references"): Rename to... ("sqlite-register with unregistered references"): ... this. Ludovic Courtès
2020-12-15database: Remove #:deduplicate? and #:reset-timestamps? from 'register-path'....* guix/store/database.scm (register-path): Remove #:deduplicate? and #:reset-timestamps?. * guix/scripts/system.scm (copy-item): Adjust accordingly. * tests/store-database.scm ("register-path") ("register-path, directory"): Call 'reset-timestamps'. Ludovic Courtès
2020-11-21store-database: Add test checking the directory mtime after 'register-path'....* tests/store-database.scm ("register-path, directory"): New test. Ludovic Courtès