Update OWE to 0.2.10 and package its lock feed (#843)
* Update OWE to 0.2.10 and package its lock feed * Print OWE regression failures during package checks * Make OWE package regression independent of timestamp precision
This commit is contained in:
1 parent
be91aebbf3
commit
fe4b80b0a6
2 files changed
+38
-6
No files matched your search
@@ -0,0 +1,18 @@
|
||||
diff --git i/test/lock_policy.c w/test/lock_policy.c
|
||||
index 8561616..6c554b1 100644
|
||||
--- i/test/lock_policy.c
|
||||
+++ w/test/lock_policy.c
|
||||
@@ -576,6 +576,13 @@ int main(void) {
|
||||
CHECK(!prepared_intro_matches(copy));
|
||||
a = open(prepared, O_WRONLY);
|
||||
CHECK(a >= 0 && write(a, "clip-c", 6) == 6);
|
||||
+ /* Fast writes can share a timestamp on the builder filesystem.
|
||||
+ * Advance mtime explicitly to exercise prepared-file invalidation. */
|
||||
+ struct timespec changed_times[2] = {
|
||||
+ { .tv_nsec = UTIME_OMIT },
|
||||
+ { .tv_sec = g_app.intro_prepared_mtime.tv_sec + 1 }
|
||||
+ };
|
||||
+ CHECK(futimens(a, changed_times) == 0);
|
||||
close(a);
|
||||
CHECK(!prepared_intro_matches(prepared));
|
||||
clear_prepared_intro();
|
||||
Reference in new issue
Block a user