aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-13 12:56:58 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-13 12:56:58 -0400
commit54edbc6815e42457cd28fa9f1b94e732504b3fc9 (patch)
tree36c97169bf0cd59326a93b8c3c0d458f94aed8a9 /test/tests.zig
parent4cb55d3af6a71467b7d4399bedb961c81e9ad3d5 (diff)
parentd495dcc3c952c99e5358d9610cf09eb856f643b0 (diff)
downloadzig-54edbc6815e42457cd28fa9f1b94e732504b3fc9.tar.gz
zig-54edbc6815e42457cd28fa9f1b94e732504b3fc9.zip
Merge remote-tracking branch 'origin/master' into llvm8
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/tests.zig b/test/tests.zig
index ad7e5d3652..ba713902ba 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -158,7 +158,6 @@ pub fn addGenHTests(b: *build.Builder, test_filter: ?[]const u8) *build.Step {
.step = b.step("test-gen-h", "Run the C header file generation tests"),
.test_index = 0,
.test_filter = test_filter,
- .counter = 0,
};
gen_h.addCases(cases);
@@ -1105,7 +1104,6 @@ pub const GenHContext = struct {
step: *build.Step,
test_index: usize,
test_filter: ?[]const u8,
- counter: usize,
const TestCase = struct {
name: []const u8,
@@ -1208,11 +1206,7 @@ pub const GenHContext = struct {
}
pub fn add(self: *GenHContext, name: []const u8, source: []const u8, expected_lines: ...) void {
- // MacOS appears to not be returning nanoseconds in fstat mtime,
- // which causes fast test executions to think the file contents are unchanged.
- const modified_name = self.b.fmt("test-{}.zig", self.counter);
- self.counter += 1;
- const tc = self.create(modified_name, name, source, expected_lines);
+ const tc = self.create("test.zig", name, source, expected_lines);
self.addCase(tc);
}