Skip to content

Commit

Permalink
fix integration tests not running in uwsgi-2.0 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
niol committed Nov 4, 2024
1 parent 02a2fc4 commit d161714
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ tests:

%:
$(PYTHON) uwsgiconfig.py --build $@

.PHONY: all clean check tests
23 changes: 23 additions & 0 deletions t/php/test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

# execute with:
# uwsgi --ini t/php/config.ini &
# curl http://localhost:8080/test.php

set_error_handler(function() {
var_export(func_get_args());
echo "\nFAIL\n";
die;
});

session_start();
$_SESSION['t'] = 't';
session_commit();

session_start();
session_regenerate_id();
session_commit();

session_start();
session_destroy();
echo "PASS\n";

0 comments on commit d161714

Please sign in to comment.