File: qa-share

package info (click to toggle)
newlisp 10.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 6,248 kB
  • sloc: ansic: 33,280; lisp: 4,181; sh: 609; makefile: 215
file content (17 lines) | stat: -rwxr-xr-x 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env newlisp


(set 'flash (share))
(share flash (pack (dup "u" 10) (sequence 1 10)))

(define (get-data adr)
    (unpack (dup "u" 10) (share adr)))

(spawn 'X (get-data flash))
(sync 10)
(println X " = " (sequence 1 10))
(if (= X (sequence 1 10))
    (println "test passed SUCCESSFUL")
    (println "test passed with error"))

(exit)