Skip to content

Commit 8d0fabe

Browse files
[C] Renamed built exe to ./ac-sql
1 parent 24b6289 commit 8d0fabe

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

C-method/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ FLAGS = -Wall -g -Wextra
33
COMPILER = gcc
44

55
build:
6-
$(COMPILER) $(FLAGS) src/*.c -o tema3 -Iinclude -lm
6+
$(COMPILER) $(FLAGS) src/*.c -o ac-sql -Iinclude -lm
77

88
clean:
9-
rm -f tema3
9+
rm -f ac-sql
1010

1111
# DO NOT REMOVE THE FOLLOWING RULE:
1212
dispatch_helper:

C-method/checker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def check_task_2():
7171

7272
points = 0
7373
valgrind_pass = True
74-
os.system("chmod +x tema3")
74+
os.system("chmod +x ac-sql")
7575

7676
print("TASK 2")
7777
print("----------------")
@@ -89,7 +89,7 @@ def check_task_2():
8989
ref_test = "../tests/ref/" + database.split(".")[0] + "." + test.split(".")[0] + ".ref"
9090

9191
with open(input_test, 'r') as f:
92-
result = subprocess.run(['./tema3', '../tests/db/' + database], stdin=f, capture_output=True, text=True)
92+
result = subprocess.run(['./ac-sql', '../tests/db/' + database], stdin=f, capture_output=True, text=True)
9393

9494
if result.returncode != 0:
9595
print("Eroare de rulare! Posibil segmentation fault.")
@@ -107,7 +107,7 @@ def check_task_2():
107107
else:
108108
print(f"{test} - OK")
109109
points += 3.5
110-
valgrind_pass &= check_valgrind("tema3", database, input_test)
110+
valgrind_pass &= check_valgrind("ac-sql", database, input_test)
111111
print("----------------")
112112
if not valgrind_pass:
113113
print("Depunctare pentru memory leaks. -10 puncte")
@@ -252,7 +252,7 @@ def main():
252252
points += check_coding_style()
253253
print()
254254
print("PUNCTAJ FINAL: " + str(points))
255-
os.system("rm -f tema3")
255+
os.system("rm -f ac-sql")
256256

257257
if __name__ == "__main__":
258258
main()

C-method/src/task2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ int main(int argc, char *argv[]) {
11421142

11431143
if (argc != 2) {
11441144
fprintf(stderr, "[EROARE] Programul se asteapta sa fie apelat in felul urmator:\n");
1145-
fprintf(stderr, " ./tema1 <file.db>\n");
1145+
fprintf(stderr, " ./ac-sql <file.db>\n");
11461146
return EXIT_FAILURE;
11471147
}
11481148

0 commit comments

Comments
 (0)