Skip to content

Commit 7363d43

Browse files
committed
tests: x64: fixed a few minor issues with the x64 test suite.
* Added missing targets to .PHONY * Made the unit_test.sh script executable * Fixed minor styling issues
1 parent 38cb695 commit 7363d43

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/x64/test/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: default test benchmark
1+
.PHONY: default test benchmark clean
22

33
default: test benchmark
44

@@ -33,7 +33,7 @@ benchmark: $(BENCHMARK_PROGRAM)
3333
# micro benchmark
3434
./$(BENCHMARK_PROGRAM)
3535

36-
$(TEST_PROGRAM) : $(TEST_PROGRAM_OBJ)
36+
$(TEST_PROGRAM): $(TEST_PROGRAM_OBJ)
3737
cat $(TEST_PROGRAM_OBJ:.o=.d) > dep1.txt
3838
$(CXX) $+ $(CXXFLAGS) -lm -o $@
3939

src/x64/test/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static bool
1111
smoke_test()
1212
{
1313
fprintf(stdout, "running smoke tests...\n");
14-
char buf[1024];
14+
char buf[1024];
1515
char c = getpid() % 'a';
1616

1717
for (int i = 0; i < (int)sizeof(buf); i++) {
@@ -34,7 +34,7 @@ verify_log2()
3434
fprintf(stdout, "verify log2...\n");
3535
bool err = false;
3636
std::map<uint32_t, uint32_t> lm;
37-
lm[0] =(uint32_t)-1;
37+
lm[0] = (uint32_t) -1;
3838
lm[1] = 0;
3939
lm[2] = 1;
4040
for (int i = 2; i < 31; i++) {

src/x64/test/test_str_comp.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ ffi.cdef[[
1818
long random(void);
1919
]]
2020

21-
2221
local function test_equal(len_min, len_max)
2322
-- source string is wrapped by 16-byte-junk both before and after the
2423
-- string

src/x64/test/unit_test.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)