History

tests2: fix 30_hanoi test and enable it.

minux committed 12 years ago

Commit 0a513861 parent 0e3d2e02 files · +2 −2Browse files

Unified · Split

2 files
  1. tests/tests2/30_hanoi.c +1 −1
  2. tests/tests2/Makefile +1 −1
tests/tests2/30_hanoi.c+1−1
@@ -68,7 +68,7 @@ void PrintAll() · 67 unmodified lines
6868 /* Returns the value moved (not used.) */
6969 int Move(int *source, int *dest)
7070 {
71− int i,j;
71+ int i = 0, j = 0;
7272
7373 while (i<N && (source[i])==0) i++;
7474 while (j<N && (dest[j])==0) j++;
tests/tests2/Makefile+1−1
@@ -88,7 +88,7 @@ TESTS = \ · 87 unmodified lines
8888 # 34_array_assignment.test -- array assignment is not in C standard
8989 # 46_grep.test -- does not compile even with gcc
9090
91−SKIP = 30_hanoi.test 34_array_assignment.test 46_grep.test
91+SKIP = 34_array_assignment.test 46_grep.test
9292
9393 # some tests do not pass on all platforms, remove them for now
9494 ifeq ($(TARGETOS),Darwin)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t