Changeset 699bf50 in git


Ignore:
Timestamp:
26/01/14 23:50:09 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
b5283af
Parents:
a4fb8d0
Message:

src/commands.c: If *units is used to set units for LEVEL, PLUMB, or
POSITION, give an error rather than quietly ignore the attempt.
tests/: New regression testcase bad_units_qlist.

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    ra4fb8d0 r699bf50  
     1Sun Jan 26 23:48:19 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/commands.c: If *units is used to set units for LEVEL, PLUMB, or
     4          POSITION, give an error rather than quietly ignore the attempt.
     5        * tests/: New regression testcase bad_units_qlist.
     6
    17Sun Jan 26 23:35:18 GMT 2014  Olly Betts <olly@survex.com>
    28
  • src/commands.c

    ra4fb8d0 r699bf50  
    11/* commands.c
    22 * Code for directives
    3  * Copyright (C) 1991-2003,2004,2005,2006,2010,2011,2012,2013 Olly Betts
     3 * Copyright (C) 1991-2003,2004,2005,2006,2010,2011,2012,2013,2014 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    12691269   real factor;
    12701270
    1271    qmask = get_qlist(0);
     1271   qmask = get_qlist(BIT(Q_POS)|BIT(Q_PLUMB)|BIT(Q_LEVEL));
     1272
    12721273   if (!qmask) return;
    12731274   if (qmask == BIT(Q_DEFAULT)) {
  • tests/Makefile.am

    ra4fb8d0 r699bf50  
    7777notentranceorexport.svx inferunknown.svx inferexports.svx\
    7878bad_units_factor.svx bad_units_factor.out\
     79bad_units_qlist.svx bad_units_qlist.out\
    7980percent_gradient.svx percent_gradient.pos\
    8081dotinsurvey.svx dotinsurvey.out\
  • tests/cavern.tst

    ra4fb8d0 r699bf50  
    5353 baddatacylpolar badnewline badquantities imgoffbyone infereqtopofil 3sdfixbug\
    5454 omitclino back notentranceorexport inferunknown inferexports bad_units_factor\
     55 bad_units_qlist\
    5556 percent_gradient dotinsurvey leandroclino lowsd revdir gettokennullderef\
    5657 nosurveyhanging cmd_solve_nothing cmd_solve_nothing_implicit\
     
    198199  inferexports) pos=no; warn=0 ;;
    199200  bad_units_factor) pos=fail; error=6 ;;
     201  bad_units_qlist) pos=fail; error=3 ;;
    200202  percent_gradient) pos=yes; warn=0 ;;
    201203  dotinsurvey) pos=no; warn=2 ;;
Note: See TracChangeset for help on using the changeset viewer.