File: test.dpatch

package info (click to toggle)
lua-sql 2.2.0~rc1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 648 kB
  • ctags: 545
  • sloc: ansic: 3,456; java: 123; makefile: 63; xml: 38; sh: 15
file content (22 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh /usr/share/dpatch/dpatch-run
## test.dpatch by Enrico Tassi <gareuselesinge@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: do an os.exit(0) at the very end to skip dlclose

@DPATCH@
diff -urNad trunk~/tests/test.lua trunk/tests/test.lua
--- trunk~/tests/test.lua	2007-10-16 17:42:50.000000000 +0200
+++ trunk/tests/test.lua	2008-01-13 18:12:57.000000000 +0100
@@ -613,3 +613,11 @@
 	io.write (" OK !\n")
 end
 
+p = io.popen('dpkg-architecture -qDEB_HOST_ARCH','r')
+d = p:read('*all')
+if d == 'hppa\n' then
+        -- on hppa dlclose fails
+	print("We are running on hppa, dlclose skipped")
+        os.exit(0)
+end
+