emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/sqlite3 2f6095201b 57/62: Removed #if 0, added tests/Makef


From: ELPA Syncer
Subject: [nongnu] elpa/sqlite3 2f6095201b 57/62: Removed #if 0, added tests/Makefile
Date: Tue, 14 Mar 2023 11:01:49 -0400 (EDT)

branch: elpa/sqlite3
commit 2f6095201b1d943d92cc017e100eec571a8d2aab
Author: Peking Duck <pekingduck@users.noreply.github.com>
Commit: Peking Duck <pekingduck@users.noreply.github.com>

    Removed #if 0, added tests/Makefile
---
 sqlite3-api.c  | 21 ---------------------
 tests/Makefile |  9 +++++++++
 2 files changed, 9 insertions(+), 21 deletions(-)

diff --git a/sqlite3-api.c b/sqlite3-api.c
index 67b474ef8e..5263b48d21 100644
--- a/sqlite3-api.c
+++ b/sqlite3-api.c
@@ -809,22 +809,6 @@ static emacs_value sqlite3_api_set_log_level(
   return NIL(env);
 }
 
-#if 0
-static emacs_value sqlite3_api_test(
-    emacs_env *env,
-    ptrdiff_t n,
-    emacs_value *args,
-    void *ptr) {
-  (void)ptr;
-  (void)n;
-
-  emacs_value *fargs = malloc(sizeof(emacs_value)*2);
-  fargs[0] = MAKE_INT(env, 1);
-  fargs[1] = MAKE_INT(env, 99);
-  return env->funcall(env, args[0], 2, fargs);
-}
-#endif
-
 static emacs_value sqlite3_api_open(
     emacs_env *env,
     ptrdiff_t n,
@@ -922,11 +906,6 @@ int emacs_module_init(struct emacs_runtime *ert) {
         "Reset a prepared SQL statement." },
       { "sqlite3-last-insert-rowid", 1, 1, sqlite3_api_last_insert_rowid,
         "Return last insert rowid." },
-#if 0
-      { "sqlite3-set-last-insert-rowid", 2, 2,
-        sqlite3_api_set_last_insert_rowid,
-        "Set last insert rowid." },
-#endif
       { "sqlite3-get-autocommit", 1, 1, sqlite3_api_get_autocommit,
         "Test for auto-commit mode." },
       { "sqlite3-exec", 2, 3, sqlite3_api_exec,
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000000..5310e4faa9
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,9 @@
+EMACS281=$(HOME)/Emacs/dists/28.1/bin/emacs
+EMACS272=$(HOME)/Emacs/dists/27.2/bin/emacs
+
+test:
+       $(EMACS281) -batch -Q -L .. -l regression.el
+       $(EMACS272) -batch -Q -L .. -l regression.el
+
+#test-consts:
+#      $(EMACS) -l tests/consts.el



reply via email to

[Prev in Thread] Current Thread [Next in Thread]